import request from '@/utils/request'

// 查询商品库存信息列表
export function listKeep(query) {
  return request({
    url: '/system/keep/list',
    method: 'get',
    params: query
  })
}

// 查询商品库存信息详细
export function getKeep(keepId) {
  return request({
    url: '/system/keep/' + keepId,
    method: 'get'
  })
}

// 新增商品库存信息
export function addKeep(data) {
  return request({
    url: '/system/keep',
    method: 'post',
    data: data
  })
}

// 修改商品库存信息
export function updateKeep(data) {
  return request({
    url: '/system/keep',
    method: 'put',
    data: data
  })
}

// 删除商品库存信息
export function delKeep(keepId) {
  return request({
    url: '/system/keep/' + keepId,
    method: 'delete'
  })
}

// 导出商品库存信息
export function exportKeep(query) {
  return request({
    url: '/system/keep/export',
    method: 'get',
    params: query
  })
}